package com.tjnu.losca.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author Losca
 * @date 2021/9/17 15:23
 */
@Configuration
public class UserInterceptorConfig implements WebMvcConfigurer {

    //@Autowired
    //private UserInterceptor userInterceptor;
    //
    //@Override
    //public void addInterceptors(InterceptorRegistry registry) {
    //    InterceptorRegistration interceptor = registry.addInterceptor(userInterceptor);
    //    interceptor.addPathPatterns("/**").excludePathPatterns("/teacher/login").excludePathPatterns("/test/**");
    //}
}
